//
//  lyricsCell.swift
//  QQMusic
//
//  Created by xmg on 16/9/8.
//  Copyright © 2016年 wlis. All rights reserved.
//

import UIKit

class lyricsCell: UITableViewCell {

    /** 文字Label */
    lazy var  lyricsLabels : lyricsLabel = lyricsLabel()
    
    /** 重写构造函数 */
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        backgroundColor = UIColor.clearColor()
        selectionStyle = .None
        
        /** 设置自定义Label */
        contentView.addSubview(lyricsLabels)
        lyricsLabels.textColor = UIColor.whiteColor()
        lyricsLabels.textAlignment = .Center
        lyricsLabels.font = UIFont.systemFontOfSize(14.0)
        
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        lyricsLabels.sizeToFit()
        lyricsLabels.center = contentView.center
    }
}
